package com.fahai.common.aop;

import com.fahai.common.CustomException;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * @Description
 * @Author heshichao
 * @Time 上午10:09
 * @Version 1.0
 */
@Aspect
@Component
public class UCPassAop {

    private static final Logger logger = LoggerFactory.getLogger(UCPassAop.class);

//    @Pointcut("execution(* com.fahai.web.service.impl.CallServiceImpl.sendCall(..))")
    private void sendCall() {}

    /**
     * 拨打电话时的前置方法
     * @param joinPoint
     */
//    @Before("sendCall()")
    public int startCallBeforeAdvice(JoinPoint joinPoint) throws CustomException {
       return 0;
    }

}
